#! /bin/sh /usr/share/dpatch/dpatch-run
## 04_manpages.dpatch by  <Mazen Neifer <mazen.neifer@supaero.org>>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: This patch fixes issues on man pages from up stream.

@DPATCH@
Index: install/man/man1/lazarus-ide.1
===================================================================
--- lazarus-0.9.26~/install/man/man1/lazarus-ide.1	
+++ lazarus-0.9.26/install/man/man1/lazarus-ide.1	
@@ -1,56 +1,54 @@
-.TH Lazarus 1 "19 April 2008" "Free Pascal" "Free Pascal RAD IDE"
-.SH NAME
+.TH "Lazarus" "1" "19 April 2008" "Free Pascal" "Free Pascal RAD IDE"
+.SH "NAME"
 Lazarus \- is a Rapid Application Development (RAD) for the Free Pascal Compiler (FPC) including an Integrated Development Environment (IDE).
 
-.SH SYNOPSIS
-
+.SH "SYNOPSIS"
 .B "lazarus"
 
-.SH DESCRIPTION
+.SH "DESCRIPTION"
 This binary is an integrated development environment for the
 .I Free Pascal Compiler (FPC)
 which is an advanced
 .I Turbo Pascal
 and
 .I Delphi (7.0) 
-compatible multi-target Pascal compiler.
-.PP
+compatible multi\-target Pascal compiler.
+.PP 
 The IDE uses
 .BR FPC (1)
-.PP
+.PP 
 The current main supported targets are
 .I Linux,
-.I MacOSX,
+.I Mac OS X,
 .I Freebsd,
 and
 .I Windows.
 
 The other targets are either based on older
 versions of the compiler or are still in development.
-.PP
+.PP 
 This manpage is meant for quick\-reference only. Lazarus comes with an online manual, which is updated constantly, while this man page can be out of date.
 
-.SH Usage
-
+.SH "Usage"
 The user interface of the IDE has been designed to be similar to Delphi.
-It provides the user with a user friendly, but rather powerful editor, a form editor, an extensive on-line help system and a debugger.
+It provides the user with a user friendly, but rather powerful editor, a form editor, an extensive on\-line help system and a debugger.
 
 A windowing system is the base of the user interface. The user will usually open a few text editor windows in which he will design his program, during which he can regularly check and
 debug through the use of hot keys. The high speed of the compiler ensures that programmers
 can do this often and therefore allows speedy development of code.
 
-.SH Help files
-
+.SH "Help files"
 No help files are provided by default. The user must download the Lazarus and Free Pascal documentation
-in HTML format and install it into the IDE using the Help->Configure Help.
+in HTML format and install it into the IDE using the Help\->Configure Help.
 Files can also be installed in this menu and can be useful for source code that ships with HTML files as documentation.
 
-.SH AUTHORS
+.SH "AUTHORS"
 Lazarus development team (see 
 .I http://lazarus.freepascal.org
 )
 
-.SH SEE ALSO
-.BR fpc (1)
+.SH "SEE ALSO"
+.IP 
 .BR startlazarus (1)
 .BR lazbuild (1)
+.BR fpc (1)
Index: install/man/man1/lazbuild.1
===================================================================
--- lazarus-0.9.26~/install/man/man1/lazbuild.1	
+++ lazarus-0.9.26/install/man/man1/lazbuild.1	
@@ -1,87 +1,84 @@
-.TH lazbuild 1 "19 April 2008" "Lazarus" "Lazarus Projects Builder"
-.SH NAME
+.TH "lazbuild" "1" "19 April 2008" "Lazarus" "Lazarus Projects Builder"
+.SH "NAME"
 lazbuild \- The Lazarus project and package build program.
 
-.SH SYNOPSIS
-
+.SH "SYNOPSIS"
 .B lazbuild
 .I "[options] filename..."
 
-.SH DESCRIPTION
-
+.SH "DESCRIPTION"
 .B lazbuild
 builds a Lazarus project or package. It compiles projects (.lpi) and packages
 (.lpk). It checks and automatically compiles required packages.
 
-.SH USAGE
-
+.SH "USAGE"
 .B lazbuild
-is a command-line tool that builds Lazarus projects and packages. It
+is a command\-line tool that builds Lazarus projects and packages. It
 checks recursively all dependencies and compiles needed packages first. It uses
 the
 .B Free Pascal compiler (fpc)
 to compile.
 
-.SH OPTIONS
-
-.TP
+.SH "OPTIONS"
+.TP 
 .BI "\-h, \-\-help"
 Displays a short help message.
-.TP
-.BI "-B, --build-all"
+.TP 
+.BI "\-B, \-\-build\-all"
 build all files of project/package. Has the same effect as option
-.BI -B
+.BI \-B
 of
 .BR fpc (1).
-.TP
-.BI "-r, --recursive"
-apply build flags (-B) to dependencies too.
-.TP
-.BI "-d, --skip-dependencies"
+.TP 
+.BI "\-r, \-\-recursive"
+apply build flags (\-B) to dependencies too.
+.TP 
+.BI "\-d, \-\-skip\-dependencies"
 do not compile dependencies
-.TP
-.BI "--build-ide=<options>"
+.TP 
+.BI "\-\-build\-ide=<options>"
 Compile the IDE (i.e. the lazarus executable). The list of installation packages
 is read from the config directory. The <options> can be empty.
-.TP
-.BI "-v, --version"
+.TP 
+.BI "\-v, \-\-version"
 show version and exit
-.TP
-.BI " --pcp=<path>, --primary-config-path=<path>"
+.TP 
+.BI " \-\-pcp=<path>, \-\-primary\-config\-path=<path>"
 primary config directory, where Lazarus stores its config files. Default is /home/mazen/.lazarus
-.TP
-.BI "--scp=<path>, --secondary-config-path=<path>"
+.TP 
+.BI "\-\-scp=<path>, \-\-secondary\-config\-path=<path>"
 secondary config directory, where Lazarus searches for config template files. Default is /etc/lazarus
-.TP
-.BI "--os=<operating-system>, --operating-system=<operating-system>"
+.TP 
+.BI "\-\-os=<operating\-system>, \-\-operating\-system=<operating\-system>"
 override the project operating system. e.g. win32 or linux.
-.TP
-.BI "--ws=<widgetset>, --widgetset=<widgetset>"
+.TP 
+.BI "\-\-ws=<widgetset>, \-\-widgetset=<widgetset>"
 override the project widgetset. e.g. gtk, gtk2, qt, win32 or carbon.
-.TP
-.BI "--cpu=<cpu>"
+.TP 
+.BI "\-\-cpu=<cpu>"
 override the project cpu. e.g. i386, x86_64, powerpc, powerpc_64 etc.
-.TP
-.BI "--compiler=<ppcXXX>"
+.TP 
+.BI "\-\-compiler=<ppcXXX>"
 override the default compiler. e.g. ppc386, ppcx64, ppcppc etc.
-.TP
-.BI "--language=<lang>"
-Override language. For example --language=de. For  possible values see files in the lazarus languages directory.
+.TP 
+.BI "\-\-language=<lang>"
+Override language. For example \-\-language=de. For  possible values see files in the lazarus languages directory.
 
-.SH .lpi and .lpk files
+.SH ".lpi and .lpk files"
 The .lpi and .lpk files are best created and edited with the Lazarus IDE.
 The files are in xml. There is no reason to edit them manually, except for
 very rare cases like renaming hundreds of files.
 
-.SH SEE ALSO
+.SH "SEE ALSO"
 .IP 
-.BR lazarus-ide (1)
+.BR lazarus\-ide (1)
+.BR startlazarus (1)
 .BR fpc (1)
 .BR ld (1)
 .BR fpcmake (1)
 .BR make (1)
 
-.SH Websites
-.IP
+.SH "Websites"
+.IP 
 .BR  http://www.lazarus.freepascal.org
 
Index: install/man/man1/startlazarus.1
===================================================================
--- lazarus-0.9.26~/install/man/man1/startlazarus.1	
+++ lazarus-0.9.26/install/man/man1/startlazarus.1	
@@ -1,27 +1,24 @@
-.TH startlazarus 1 "19 April 2008" "Lazarus" "Lazarus starter"
-.SH NAME
+.TH "startlazarus" "1" "19 April 2008" "Lazarus" "Lazarus starter"
+.SH "NAME"
 startlazarus \- starts lazarus program.
 .B fpdoc.
 
-.SH SYNOPSIS
-
+.SH "SYNOPSIS"
 .B "lazarus"
 
-.SH Description
-
+.SH "Description"
 .B startlazarus
-is used to start the lazarus program. It automatically checks if user
-built a custom lazarus and starts it. And it is used to restart the IDE, when
+is used to start the lazarus program. It automatically checks if the user has
+built a custom lazarus and starts it. It is also used to restart the IDE, when
 the user clicks restart in the IDE.
 
-.SH Usage
-
+.SH "Usage"
 You can invoke 
 .B startlazarus
 without any arguments.
 
-.SH SEE ALSO
+.SH "SEE ALSO"
 .IP 
-.BR lazarys (1)
+.BR lazarus\-ide (1)
 .BR lazbuild (1)
 .BR fpc (1)
